const {
  DataTypes
} = require('sequelize');
module.exports = sequelize => {
  const attributes = {
    exercises_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: null,
      primaryKey: true,
      autoIncrement: true,
      comment: null,
      field: "exercises_id"
    },
    exercises_content: {
      type: DataTypes.STRING(1314),
      allowNull: false,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "exercises_content"
    },
    option_a: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "option_a"
    },
    option_b: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "option_b"
    },
    option_c: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "option_c"
    },
    option_d: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "option_d"
    },
    answer: {
      type: DataTypes.STRING(30),
      allowNull: false,
      defaultValue: null,
      primaryKey: false,
      autoIncrement: false,
      comment: null,
      field: "answer"
    }
  };
  const options = {
    tableName: "exercises",
    comment: "",
    indexes: []
  };
  const ExercisesModel = sequelize.define("exercises_model", attributes, options);
  return ExercisesModel;
};